package com.sumainfor.pc.market.fallback.ZfallBack;

import com.google.common.collect.Maps;
import com.sumainfor.common.util.JsonResult;
import com.sumainfor.pc.market.feign.Zfeign.ZzuulFeign;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 功能描述:调用网关服务
 */
@Component
public class ZuulFeignFallback implements ZzuulFeign {

    @Override
    public JsonResult getButlerName(List<String> idList) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public JsonResult getDeptNameByDeptId(List<String> idList) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public Map<String, Object> getHousingInfoName(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public Map<String, Object> getHousingInfoNameFd(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public JsonResult getUserName(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public JsonResult getUserDeptName(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public JsonResult getPuserListById(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public JsonResult getSysUserBySysUserId(Map<String, Object> params) {

        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public JsonResult getReapirSysUser(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙.");
    }

    @Override
    public Map<String, Object> getDeptInfoById(String deptId) {
        return Maps.newHashMap();
    }

    @Override
    public JsonResult getWoUserIdList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙");
    }

    @Override
    public JsonResult getWoSaleIdList(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙");
    }

    @Override
    public JsonResult getAreaInfoForGSByDeptId(String deptId) {
        return JsonResult.error("路由服务器繁忙");
    }

    @Override
    public JsonResult addMessage(Map<String, Object> params) {
        return JsonResult.error("服务器繁忙");
    }

    @Override
    public JsonResult getSysDeptInfoList() {
        return JsonResult.error("服务器繁忙");
    }


}

